﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TimKenSite.Master" AutoEventWireup="true" CodeBehind="Help.aspx.cs" Inherits="TimKen.Web.User.Help" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../Common/Style/common.css" rel="stylesheet" type="text/css" /> 
    <script type="text/javascript">
        $(function () {
            $(".nav_li").hover(function () {//鼠标放上去时候的效果
                $(this).children("a").addClass("navon"); //鼠标放上去的加上高亮
                $(this).children("div").show(); //鼠标放上去的二级栏目出来
                $(this).siblings().children("a").removeClass("navon"); //其他的高亮取消
                $(".common_search_tk").css("position", "static");
                $(".common_search_tkicon").hide();
            }, function () {//鼠标移开时候的效果
                $(this).children("a").removeClass("navon"); //鼠标移开去掉高亮
                $(this).children("div").hide(); //鼠标移开隐藏二级栏目
                $(".common_search_tk").css("position", "relative");
                $(".common_search_tkicon").show();
                $(".nav_li:eq(5)").children("a").addClass("navon"); //回到当前栏目高亮
            });
        });
        $(document).ready(function () {
            $(".nav_li:eq(5)").children("a").addClass("navon").parent().siblings().children("a").removeClass();
            $(".left_nav ul li:eq(0)").children("a").addClass("left_navon"); //左侧导航，当前栏目高亮	
            $(".help_box_top li").click(function () {
                var help_nu = $(this).index();
                $(this).addClass("help_box_topon").siblings().removeClass("help_box_topon");
                $(".help_div ul").eq(help_nu).show().siblings().hide();
            });
        });
        window.onload = function () { for (var ii = 0; ii < document.links.length; ii++) document.links[ii].onfocus = function () { this.blur() }; $("#tb_1").trigger("click"); }	
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Title" runat="server">
    <div class="left_nav">
        <ul> 
             <li><a href="Service.aspx"><%=GetLangString("Help") %></a></li>
            <li><a href="Survey.aspx"><%=GetLangString("MenuSurvey") %></a></li>
            <li><a href="Gift.aspx">
                <%=GetLangString("GiftInfo")%></a></li>
        </ul>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="body" runat="server">
<form runat="server">
    <div class="rtitle">
        <%=GetLangString("Help")%>
    </div>
    <div class="helptab">
        <div class="tabs">
            <ul>
                <%for (int i = 0; i < drcHelpClass.Count; i++)
                  {
                      System.Data.DataRow drClass = drcHelpClass[i]; 
                %>
                <li id="tb_<%=i+1%>" onclick="HoverLi(<%=i+1%>);"><span>
                    <%=LanguageID == 1? drClass["ClassNameCn"]:drClass["ClassNameEn"]%></span></li>
                <%} %>
            </ul>
        </div>
        <div class="tabcontent">
            <%for (int i = 0; i < drcHelpClass.Count; i++)
              {
                  System.Data.DataRow drClass = drcHelpClass[i];%>
                  
                  
            <div class="dis" id="tbc_0<%=i+1%>">
                <%System.Data.DataRowCollection drHelp = GetHelpByClass(int.Parse(drClass["ClassID"].ToString()));

                  for (int j = 0; j < drHelp.Count; j++)
                  {
                      System.Data.DataRow dr = drHelp[j]; 
                  %>
           
                <div class="subtitle">       <a name="<%=i.ToString() + j.ToString()%>"></a>
                    <%=dr["Title"]%>
                </div>
                <%if (!string.IsNullOrEmpty(dr["Content"].ToString()))
                  {%>
                <p>
                    <%=dr["Content"]%></p>
                <%}
                  }%>
            </div>
            <%} %>
        </div>
    </div>

    <script type="text/javascript" language="javascript" defer="defer">
        <!--
        function g(o) { return document.getElementById(o); }
        function HoverLi(n) {
            for (var i = 1; i <= 4; i++) {
                g('tbc_0' + i).className = 'undis'; g('tb_' + i).className = 'normaltab';
            } g('tbc_0' + n).className = 'dis'; g('tb_' + n).className = 'hovertab';
        }
        //-->

        var classid = '<%=string.IsNullOrEmpty(Request.QueryString["ClassID"])?"1":Request.QueryString["ClassID"]%>';
        HoverLi(classid);
    </script>
    
     </form>
</asp:Content>
